package com.dhy.constants;

/**
 * @author 大忽悠
 * @create 2022/5/19 9:49
 */
public class RabbitmqConstants {
    public static final String EXCHANGE_NAME="dhy-exchange";
    public static final String QUEUE_NAME="dhy-queue";
    public static final String ROUTING_KEY="dhy";
    public static final String TEMP_QUEUE="";
    public static final String UNKNOWN_ROUTING_KEY ="unknown";

    /**
     * 直接交换机
     */
    public static final String DIRECT_EXCHANGE="direct";
    /**
     * 主题交换机
     */
    public static final String TOPIC_EXCHANGE="topic";


    public static final String Q1_QUEUE="Q1";
    public static final String Q1_ROUTE_KEY="*.orange.*";

    public static final String Q2_QUEUE="Q2";
    public static final String Q2_ROUTE_KEY1="*.*.rabbit";
    public static final String Q2_ROUTE_KEY2="lazy.#";

    public static final String DEFAULT_CHANGE="";

    //----------------死信交换机----------------------
    public static final String DEAD_EXCHANGE="dead_exchange";
    public static final String DEAD_QUEUE="dead_queue";
    public static final String DEAD_KEY="dead_key";
}
